//
//  UIImageView+CM_ShowImage.m
//  CoolTennisBall
//
//  Created by CA on 16/4/6.
//  Copyright © 2016年 CoolLang. All rights reserved.
//

#import "UIImageView+CM_ShowImage.h"
#import "MJPhotoBrowser.h"

@implementation UIImageView (CM_ShowImage)

- (void)showImage
{
    MJPhoto *photo = [[MJPhoto alloc] init];
    photo.image = self.image;
    photo.srcImageView = self;
    MJPhotoBrowser *browser = [[MJPhotoBrowser alloc] init];
    browser.currentPhotoIndex = 0;
    browser.photos = @[photo];
    browser.showSaveBtn = NO;
    [browser show];
}

@end
